<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格</title>
</head>
<body>
<!--border 设置边框-->
<table border="1">
  <tr><!--table row 表示行-->
    <!--colspan 合并单元格 跨行合并-->
    <td colspan="2" align="center">1-1</td>
    <td rowspan="2" align="center">1-2</td>
    <td colspan="2" align="center">1-3</td>
    <td colspan="2" align="center">1-4</td>
  </tr>
  <tr><!--table data 表示列-->
    <!--rowspan 合并单元格 跨列合并-->
    <td colspan="2" align="center">2-1</td>
    <td rowspan="2" align="center">2-2</td>
    <td colspan="2" align="center">2-3</td>
    <td colspan="2" align="center">2-4</td>
  </tr>
  <tr>
    <td colspan="2" align="center">3-1</td>
    <td rowspan="2" align="center">3-2</td>
    <td colspan="2" align="center">3-3</td>
    <td colspan="2" align="center">3-4</td>
  </tr>
</table>
<br>
<table border="1">
  <caption>购物车</caption>
  <tr><!--table header 表头 加粗并居中-->
    <td>1</td><td>苹果13 plus max</td><td>6000</td>
  </tr>
  <tr>
    <td>2</td><td>华为meta50</td><td>5000</td>
  </tr>
  <tr>
    <td>总价:</td><td colspan="2" align="center">11000</td>
  </tr>
</table>
</body>
</html>